/*
 * @Author: Bennty
 * @Date: 2024-11-29 11:06:11
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-12-02 17:01:41
 * @Description: 请填写简介
 */
import request from '@/utils/request';

/** 新增产品配置 */
export const addConfigureApi = (data: any) => {
    return request({
        url: '/system/productCombination',
        method: 'post',
        data: data
    });
};

/** 查询产品配置列表 */
export const getConfigureListApi = (data: any) => {
    return request({
        url: '/system/productCombination/list',
        method: 'post',
        data: data
    })
};

/** 修改产品配置 */
export const editConfigureApi = (data: any) => {
    return request({
        url: '/system/productCombination',
        method: 'put',
        data: data
    })
};

/** 删除产品配置 */
export const deleteConfigureApi = (id: any) => {
    return request({
        url: `/system/productCombination/${id}`,
        method: 'delete'
    })
};

/** 获取产品配置详细信息 */
export const getConfigureDetailApi = (id: any) => {
    return request({
        url: `/system/productCombination/${id}`,
        method: 'get'
    })
};

/** 新增订单，获取对应组合的配置信息 */
export const getConfigureDataApi = (id: any) => {
    return request({
        url: '/system/productCombination/getCombinationInfo',
        method: 'get',
        params: {id: id}
    });
};

/** 获取纸箱信息 */
export const getBoxGaugeInfoApi = (id: any) => {
    return request({
        url:'/system/productCombination/getBoxInfo',
        method: 'get',
        params: {id: id}
    });
};

/** 保存纸箱信息 */
export const editBoxGaugeApi = (data: any) => {
    return request({
        url: '/system/productCombination/saveBoxInfo',
        method: 'put',
        params: data
    })
};

/** 产品配置组合列表 不分页 */
export const getConfigureByStyleApi = (data: any) => {
    return request({
        url: '/system/productCombination/getListNoPage',
        method: 'get',
        params: data
    });
};